package com.hanson.mapper;

import com.hanson.entity.GoodsCollectBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsCollectBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(GoodsCollectBean record);

    GoodsCollectBean selectByPrimaryKey(Integer id);

    List<GoodsCollectBean> selectAll();

    List<GoodsCollectBean> selectByOpenId(@Param("openId") String openId);

    int deleteByGoodsId(@Param("goodsId") Integer goodsId);

    int updateByPrimaryKey(GoodsCollectBean record);

    int deleteByOpenIdAndGoodsId(@Param("openId") String openId,@Param("goodsId") Integer goodsId);

    int countByOenIdAndGoodsId(@Param("openId") String openId,@Param("goodsId") Integer goodsId);
}